by Devin Yang

建立於: 7年前 ( 更新: 7年前 )

強制清空遠端repo所有的資料,產生新的repo,
注意這是危險動作,請了解您知道您要做什麼。

git init
git add .
git commit -m 'Initial commit'
git remote add origin [repo_address]
git push --mirror --force

Tags: git

Devin Yang

文章內容無法一一說明,如果您有什麼不了解處,歡迎提問哦:)

No Comment

Post your comment

需要登入才可留言!

類似的文章


git

用git logt指令快速列出自己或別人的commit

這裡有兩個指令,可以快速列出自己或別人所有的commit

docker,git

用docker-compose快速建立私有的git服務

如何快速建立一個開箱即用的Gogs環境呢? 本文介紹採用docker-compose.yml快速建立gogs環境。

git

參除git遠端或本地端的tag

如何參除git遠端或本地端的Tag.